package com.molyfun.parents.rest.bean;

import android.os.Parcel;
import android.os.Parcelable;

import com.molyfun.parents.rest.BaseResponse;

import java.util.List;

/**
 * Created by william(liuchao.hit@gmail.com).
 * Date:10/31/16.
 */
public class GetSubjectResponse extends BaseResponse {

    private SubjectDetailBean data;

    public SubjectDetailBean getData(){
        return data;
    }

    public static class SubjectDetailBean implements Parcelable {


        /**
         * id : 4028b88162f53a8f0162f59db22a0005
         * name : 王者
         * target : is库洛姆人咯人咯人咯
         * begindatetime : 1524798360000
         * process : 咳咳额可怜可怜
         * enddatetime : 1524819060000
         * teachway : live
         * livestatus : init
         */

        private String id;
        private String name;
        private String target;
        private long begindatetime;
        private String process;
        private long enddatetime;
        private String teachway;
        private String livestatus;
        private List<MediaobjectlistBean> subjectcourselist;
        private String recordurl;

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getRecordurl() {
            return recordurl;
        }

        public void setRecordurl(String recordurl) {
            this.recordurl = recordurl;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getTarget() {
            return target;
        }

        public void setTarget(String target) {
            this.target = target;
        }

        public long getBegindatetime() {
            return begindatetime;
        }

        public void setBegindatetime(long begindatetime) {
            this.begindatetime = begindatetime;
        }

        public String getProcess() {
            return process;
        }

        public void setProcess(String process) {
            this.process = process;
        }

        public long getEnddatetime() {
            return enddatetime;
        }

        public void setEnddatetime(long enddatetime) {
            this.enddatetime = enddatetime;
        }

        public String getTeachway() {
            return teachway;
        }

        public void setTeachway(String teachway) {
            this.teachway = teachway;
        }

        public String getLivestatus() {
            return livestatus;
        }

        public void setLivestatus(String livestatus) {
            this.livestatus = livestatus;
        }

        public List<MediaobjectlistBean> getSubjectcourselist() {
            return subjectcourselist;
        }

        public void setSubjectcourselist(List<MediaobjectlistBean> subjectcourselist) {
            this.subjectcourselist = subjectcourselist;
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeString(this.id);
            dest.writeString(this.name);
            dest.writeString(this.target);
            dest.writeLong(this.begindatetime);
            dest.writeString(this.process);
            dest.writeLong(this.enddatetime);
            dest.writeString(this.teachway);
            dest.writeString(this.livestatus);
            dest.writeTypedList(this.subjectcourselist);
            dest.writeString(this.recordurl);
        }

        public SubjectDetailBean() {
        }

        protected SubjectDetailBean(Parcel in) {
            this.id = in.readString();
            this.name = in.readString();
            this.target = in.readString();
            this.begindatetime = in.readLong();
            this.process = in.readString();
            this.enddatetime = in.readLong();
            this.teachway = in.readString();
            this.livestatus = in.readString();
            this.subjectcourselist = in.createTypedArrayList(MediaobjectlistBean.CREATOR);
            this.recordurl = in.readString();
        }

        public static final Parcelable.Creator<SubjectDetailBean> CREATOR = new Parcelable.Creator<SubjectDetailBean>() {
            @Override
            public SubjectDetailBean createFromParcel(Parcel source) {
                return new SubjectDetailBean(source);
            }

            @Override
            public SubjectDetailBean[] newArray(int size) {
                return new SubjectDetailBean[size];
            }
        };
    }

}
